package com.study.a11deadlock;

public class ThreadDemo {
    public static void main(String[] args) {
        //需求：模拟死锁
        MyThread threadA = new MyThread();
        MyThread threadB = new MyThread();
        threadA.setName("线程A");
        threadB.setName("线程B");

        threadA.start();
        threadB.start();
    }
}
